package it.polimi.traveldream.persistence;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the ponte_tour_pacchetto database table.
 * 
 */
@Entity
@Table(name="ponte_tour_pacchetto")
@NamedQuery(name="PonteTourPacchetto.findAll", query="SELECT p FROM PonteTourPacchetto p")
public class PonteTourPacchetto implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private PonteTourPacchettoPK id;

	private int numeroPersone;

	//bi-directional many-to-one association to Pacchetto
	@ManyToOne
	@JoinColumn(name="IDPacchetto")
	private Pacchetto pacchetto;

	//bi-directional many-to-one association to Tour
	@ManyToOne
	@JoinColumn(name="IDTour")
	private Tour tour;

	public PonteTourPacchetto() {
		id= new PonteTourPacchettoPK();
	}

	public PonteTourPacchettoPK getId() {
		return this.id;
	}

	public void setId(PonteTourPacchettoPK id) {
		this.id = id;
	}

	public int getNumeroPersone() {
		return this.numeroPersone;
	}

	public void setNumeroPersone(int numeroPersone) {
		this.numeroPersone = numeroPersone;
	}

	public Pacchetto getPacchetto() {
		return this.pacchetto;
	}

	public void setPacchetto(Pacchetto pacchetto) {
		this.pacchetto = pacchetto;
	}

	public Tour getTour() {
		return this.tour;
	}

	public void setTour(Tour tour) {
		this.tour = tour;
	}

}